package com.mingnew.ecache.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.mingnew.ecache.entity.Employee;
import com.mingnew.ecache.entity.dto.EmployeeDto;
import com.mingnew.ecache.entity.dto.PageDto;
import com.mingnew.ecache.entity.vo.EmployeeVo;
import com.mingnew.ecache.util.Result;

import java.util.List;


/**
 * @author : lk
 * @date 2021/5/2 12:04
 **/
public interface EmployeeService extends IService<Employee> {
    /**
     * 查询员工以及员工下的部门
     * @return
     */
    Result selectList(EmployeeDto employeeDto);


    EmployeeVo getEmp(Integer id);

    EmployeeVo updateEmployeeById(EmployeeVo employeeVo);

    /**
     * 删除
     */
    void deleteEmployee(Integer id);


    List<EmployeeVo> searchEmployee(Employee employee);
}
